/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.stock.entity;

import com.thinkgem.jeesite.common.persistence.ActEntity;
import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 入库Entity
 * @author 入库
 * @version 2019-12-21
 */
public class InOrder extends ActEntity<InOrder> {
	
	private static final long serialVersionUID = 1L;
	private String procInsId;		// 流程id
	private Date cdate;		// 日期
	private Warehouse cid;		// 仓库id
	private String batch;		// 批次号
	private String status;		// 0未审核1通过2不通过
	private String pid;		// 供应商id
	private String pname;		// 供应商名称
	private Date beginCdate;		// 开始 日期
	private Date endCdate;		// 结束 日期
	private List<InOrderDetail> inOrderDetailList = Lists.newArrayList();		// 子表列表
	
	public InOrder() {
		super();
	}

	public InOrder(String id){
		super(id);
	}

	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCdate() {
		return cdate;
	}

	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}
	
	public Warehouse getCid() {
		return cid;
	}

	public void setCid(Warehouse cid) {
		this.cid = cid;
	}
	
	public String getBatch() {
		return batch;
	}

	public void setBatch(String batch) {
		this.batch = batch;
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}
	
	public String getPname() {
		return pname;
	}

	public void setPname(String pname) {
		this.pname = pname;
	}
	
	public Date getBeginCdate() {
		return beginCdate;
	}

	public void setBeginCdate(Date beginCdate) {
		this.beginCdate = beginCdate;
	}
	
	public Date getEndCdate() {
		return endCdate;
	}

	public void setEndCdate(Date endCdate) {
		this.endCdate = endCdate;
	}
		
	public List<InOrderDetail> getInOrderDetailList() {
		return inOrderDetailList;
	}

	public void setInOrderDetailList(List<InOrderDetail> inOrderDetailList) {
		this.inOrderDetailList = inOrderDetailList;
	}
}